﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Management;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Windows.Forms;

namespace PBO
{
    static class Program
    {
        static bool Is64 = (IntPtr.Size == 8);

        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Attribute guid_attr = Attribute.GetCustomAttribute(Assembly.GetExecutingAssembly(), typeof(GuidAttribute));
            string guid = ((GuidAttribute)guid_attr).Value;
            bool isNotRunning = true;
            var run = new System.Threading.Mutex(true, guid, out isNotRunning);
            if (!isNotRunning) return;
            run.ReleaseMutex();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(MainForm.GetInstance());
        }

        private static void CheckSQLite()
        {
            if (Is64)
            {

            }
            else
            {

            }
        }
    }
}
